
import web from './web'
import cache from './cache'

let api
if (location.protocol === 'file:') {
  api = cache
} else {
  api = web
}

export default api
